public class 寻找数 {
    public static void main(String[] args) {
        int count = 0;
        int a, b, c;
        for (int i = 100; i < 1000 ; i++) {
            a = i % 10;
            b = i / 10 % 10;
            c = i /100;
            if (a * a * a + b * b * b + c * c * c == i){
                count++;
                System.out.println("水仙花:" +i);
            }
        }
        System.out.println("水仙花一共有"+count);
    }

}
